import u from "../utils";
import { SETTINGS } from "../constants";
import { WeaLocaleProvider } from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;

const _api = u.api(SETTINGS);

export default {
  getReceipt: appid => _api('form/editReceipt/info', { data: { appid } }),
  saveReceipt: params => _api('form/editReceipt/save', { 
    type: 'post',
    data: params,
    msg: getLabel('502231', '保存成功')
  })

}